<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="root">
        <!-- 不在脚手架里面的话，就不要使用自闭和标签 -->
        
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    const Grandson=Vue.extend({
        template:`<div>
            this is grandson
            </div>`,
    })
    const Son=Vue.extend({
        template:`<div>
            this is son<hr/>
            <Grandson></Grandson>
            </div>`,
            components:{
                Grandson
            }
    })
    const vm=new Vue({
        el:'#root',
        components:{
            Son
        },
        template:`<Son></Son>`
    })
    data
</script>
</html>